<?php

namespace app\provider;

class PluginProvider
{
    /**
     * 注册服务
     */
    public function register(){
        container()->bind([
            "P_migrate"=>'app\utils\base\database\Migrate',
            "P_sitemaps"=>'app\utils\base\plugin\P_sitemaps',
            "P_http"=>'app\utils\base\plugin\P_http',
            "P_file"=>'app\utils\base\plugin\P_file',
            "P_page"=>'app\utils\base\plugin\P_page',
            "P_reflection"=>'app\utils\base\plugin\P_reflection',
            "P_tag_plugin"=>'app\utils\base\plugin\tags\Tag_plugin_agent',
            "P_oauth_yifang_plugin"=>'app\utils\base\plugin\oauth\Oauth_yifang_plugin',

            "P_mycaptcha"=>'app\utils\captcha\Mycaptcha',
            "P_table_ddl"=>'app\utils\base\database\Table_ddl',
        ]);

        container()->bind([
            "P_hook"=>'app\utils\hook\Hook',
        ]);
    }

    /**
     * 服务启动
     */
    public function boot(){

    }
}